package com.djhu.freepartner.web.config;

import com.tencent.xinge.XingeApp;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class PushConfiguration {
    @Autowired
    private PushConfig pushConfig;

    @Bean
    public XingeApp xingeApp(){
        XingeApp app = new XingeApp(pushConfig.getAccessid(),pushConfig.getSecretkey());
        return app;
    }

}
